package voting

import (
	"encoding/xml"

	"awfan.cn/implement/member"
	"gopkg.in/mgo.v2/bson"
)

type VOTINGS_XML struct {
	XMLName xml.Name     `xml:"votings"`
	Version string       `xml:"version,attr"`
	Votings []VOTING_XML `xml:"voting"`
}

type VOTING_XML struct {
	Id            bson.ObjectId     `xml:"id" bson:"_id" json:"-"`
	Account       member.MEMBER_XML `xml:"account"`
	Description   string            `xml:"description"`
	Activity_time string            `xml:"activity_time"`
	Created_time  string            `xml:"created_time"`
}
